<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>静态注册的onclick事件</title>
    <script type="text/javascript">
        function onclickFun1() {
            alert("静态注册的onclick事件1");
        }

        function onclickFun2() {
            alert("静态注册的onclick事件2");
        }
    </script>
</head>
<body>
<button onclick="onclickFun1();">按钮1</button>
<button onclick="onclickFun2();">按钮2</button>
</body>
</html>